import request from "@/utils/request.js";

export function listItem(query){
    return request({
        url:'/finance/list',
        method:'get',
        params:query
    })
}
export function getByPid(pid){
    return request({
        url:'/finance/list/one?pid='+pid,
        method:'get'
    })
}
export function getPay(data){
    return request({
        url:'/finance/getpay',
        method:'post',
        data:data
    })
}
export function finish(pid,f){
    return request({
        url:'/finance/finish?pid='+pid+'&finish='+f,
        method:'get'
    })
}
export function backPay(id,pid){
    return request({
        url:'/finance/backpay?id='+id+"&pid="+pid,
        method:'get'
    })
}

export function expList4(query){
    return request({
        url:'/finance/experiment/list4',
        method:'get',
        params:query
    })
}
export function expList5(query){
    return request({
        url:'/finance/experiment/list5',
        method:'get',
        params:query
    })
}
export function toCheck(id){
    return request({
        url:'/finance/experiment/check?id='+id,
        method:'get'
    })
}export function toBack(id){
    return request({
        url:'/finance/experiment/back?id='+id,
        method:'get'
    })
}
export function toChecks(query){
    return request({
        url:'/finance/experiment/checks',
        method:'post',
        data:query
    })
}
export function toBacks(query){
    return request({
        url:'/finance/experiment/backs',
        method:'post',
        data:query
    })
}
export function getExpeByPid(query){
    return request({
        url:'/finance/experiment',
        method:'post',
        data:query
    })
}
